import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  //  hash 模式。
  history: createWebHashHistory(),

  routes : [
  {
    path: '/',
    name: 'AppMain',
    component: () => import('../src/components/AppMain.vue'),
    children:[
      {path:'/cmd',name:'cmd',component: () => import('../src/components/CMDView.vue')},
      {path:'',name:'sd',component: () => import('../src/components/SDMain.vue')},
      {path:'/set',name:'set',component: () => import('../src/components/SetingView.vue')},
      {path:'/qr',name:'qr',component: () => import('../src/components/QRMain.vue')},
      {path:'/dd',name:'dd',component: () => import('../src/components/DD.vue')},
      {path:'/down',name:'down',component: () => import('../src/components/DownVideo.vue')},
      {path:'/game',name:'game',component: () => import('../src/components/Game.vue')},
    ]
  },
  {path:'/ddF',name:'ddF',component: () => import('../src/components/DDaddF.vue')},
  {path:'/ddT',name:'ddT',component: () => import('../src/components/DDT.vue')}
]

})

export default router